import request from '@/utils/request'

// 查询业绩目标列表
export function listTarget (query) {
  return request({
    url: '/prod-api/system/target/list',
    method: 'get',
    params: query
  })
}



// 查询业绩目标详细
export function getTarget (targetId) {
  return request({
    url: '/prod-api/system/target/' + targetId,
    method: 'get'
  })
}

// 新增业绩目标
export function addTarget (data) {
  return request({
    url: '/prod-api/system/target/add',
    method: 'post',
    data: data
  })
}

// 修改业绩目标
export function updateTarget (data) {
  return request({
    url: '/prod-api/system/target/updateTarget',
    method: 'put',
    data: data
  })
}

// 删除业绩目标
export function delTarget (targetId) {
  return request({
    url: '/prod-api/system/target/' + targetId,
    method: 'delete'
  })
}



